En python al igual que en el resto de los lenguajes de programación contamos con diferentes tipos de datos, los cuales son simplemente represenataciones para conjuntos de valores.
Podemos usar la función type() para preguntarle a python el tipo de dato que corresponde al valor.
In [1]:
type(-50)
Out[1]:
In [2]:
type(6.0)
Out[2]:
In [3]:
type("esto es un string")
Out[3]:
In [4]:
type('esto tambien es un string')
Out[4]:
In [5]:
type(True)
Out[5]:
In [6]:
type(False)
Out[6]:
In [7]:
float("5")
Out[7]: